<html>
  <head>
    <link rel="stylesheet" href="${createLinkTo(dir:'css',file:'base.css')}" />
  </head>

  <body>

  <g:if test="${listaErrores && listaErrores.size()>0}">
    <div class="errors">
      <ul>
        <g:each var="error" in="${listaErrores}">
          <li>${error}</li>
        </g:each>
      </ul></div>
  </g:if>
  <g:hasErrors bean="${usuarioInstance}">
    <div class="errors">
      <g:renderErrors bean="${usuarioInstance}" as="list" />
    </div>
  </g:hasErrors>
  <g:hasErrors bean="${docenteInstance}">
    <div class="errors">
      <g:renderErrors bean="${docenteInstance}" as="list" />
    </div>
  </g:hasErrors>
  <g:form action="registroDocente" method="post" autocomplete="off" name="definicion">
    <table align="center">
      <tr class="prop">
        <td align="left" valign="middle" class="name"><label for="nombres">
            <g:message code="docente.nombres.label" default="Nombres" />
          </label>            
        </td>
        <td valign="top" class="value ${hasErrors(bean: docenteInstance, field: 'nombres', 'errors')}">
          <input  name="nombres" maxlength="50" value="${params?.nombres}"  class="campos" style="width:200px;"/>
        </td>
      </tr>
      <tr class="prop">
        <td align="left" valign="middle" class="name"><label for="apellidos">
            <g:message code="docente.apellidos.label" default="Apellidos" />
          </label>                </td>
        <td valign="top" class="value ${hasErrors(bean: docenteInstance, field: 'apellidos', 'errors')}"><g:textField name="apellidos" maxlength="50" value="${params?.apellidos}"  class="campos" style="width:200px;"/>                </td>
      </tr>
      <tr>
        <td>
          Telefono
        </td>
        <td >
          <input  name="telefono" maxlength="50" value="${docenteInstance?.telefonoPersonal}"  class="campos" style="width:200px;"/>
        </td>
      </tr>
      <tr class="prop">
        <td align="left" valign="middle" class="name"><label for="cedula">
            <g:message code="docente.cedula.label" default="C&eacute;dula" />
          </label>                </td>
        <td valign="top" class="value ${hasErrors(bean: docenteInstance, field: 'cedula', 'errors')}"><g:textField name="cedula" maxlength="50" value="${params?.cedula}" class="campos" style="width:200px;"/>                </td>
      </tr>
      <tr class="prop">
        <td align="left" valign="middle" class="name"><label for="correo">
            <g:message code="docente.correo.label" default="Correo" />
          </label>                </td>
        <td valign="top" class="value ${hasErrors(bean: docenteInstance, field: 'correo', 'errors')}"><g:textField name="correo" maxlength="50" value="${params?.correo}"  class="campos" style="width:200px"/>                                               </td>
      </tr>
      <tr>
        <td class="labels">Usuario</td>
        <td class="value ${hasErrors(bean:usuarioInstance,field:'login','errors')}">
          <input style="width:200px" type="text" class="campos" id="login" name="login" value="${params?.login}" ${eOc=='edit'?'disabled':''}/>                </td>
      </tr>
      <tr>
        <td height="20px">

        </td>  
      </tr>  
      <tr>
        <td colspan="2" align="center">
          <input type="submit" class="boton" value="Registrar">
        </td>  
      </tr>  
    </table>
  </g:form>
</body>
</html>
